package com.plm.blogs.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class User implements Serializable {

    private String id;
    private String username;
    private String password;
    private String name;
    private String gender;
    private Integer age;
    private String email;
    private String activate;//邮箱激活:0未激活，1已激活
    private String phone;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private String status;//0：被锁定；1正常。
    private String city;
    private String sign;
    private String avatar;

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                ", activate='" + activate + '\'' +
                ", phone='" + phone + '\'' +
                ", createTime=" + createTime +
                ", status='" + status + '\'' +
                ", city='" + city + '\'' +
                ", sign='" + sign + '\'' +
                ", avatar='" + avatar + '\'' +
                '}';
    }
}
